import com.qf.dao.impl.DaoRegisterIpl;
import com.qf.dao.impl.StudentAddDaoImpl;
import com.qf.dao.impl.StudentQueryDaoImpl;
import com.qf.domain.Student;
import com.qf.service.impl.ServiceImpl;
import org.junit.jupiter.api.Test;

import java.util.List;

public class dd {
    @Test
    public void test(){
        ServiceImpl service=new ServiceImpl();
        service.deng("张三","123456");
        System.out.println("小");
    }
    @Test
    public void test1(){
        StudentQueryDaoImpl studentQueryDao=new StudentQueryDaoImpl();
        List<Student> students = studentQueryDao.SelectAllStudent();
        System.out.println(students);


    }
    @Test
    public void test2(){
        StudentAddDaoImpl  studentAddDao=new StudentAddDaoImpl();
            Student student=new Student(null,"张","111");
        int add = studentAddDao.add(student);
        System.out.println(add);
    }
@Test
public void test3(){
    DaoRegisterIpl daoRegisterIpl=new DaoRegisterIpl();
    Student dd = daoRegisterIpl.findStudent("张中杰");
    System.out.println(dd);
}
@Test
public void testwd(){
    StudentQueryDaoImpl s = new StudentQueryDaoImpl();
    long count = s.count();
    System.out.println("count = " + count);
    List<Student> all = s.findALL(2, 4);
    System.out.println("all = " + all);
}
}
